package com.hstcs.gaogou.android;

import android.annotation.SuppressLint;
import android.graphics.Point;
import android.os.Bundle;
import android.view.Display;

import com.badlogic.gdx.backends.android.AndroidApplication;
import com.badlogic.gdx.backends.android.AndroidApplicationConfiguration;
import com.hstcs.assets.Config;
import com.hstcs.game.XGame;

@SuppressLint("NewApi")
public class AndroidLauncher extends AndroidApplication {
	@Override
	protected void onCreate (Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		AndroidApplicationConfiguration config = new AndroidApplicationConfiguration();
		Display display = getWindowManager().getDefaultDisplay();
        Point size = new Point();
        display.getSize(size);
        float windowHeight = size.y;
        float windowWidth = size.x;
//      System.out.println("ttX:" + windowWidth + "Y:" + windowHeight);
       
        Config.set_1334_750();
		initialize(XGame.getInstance(), config);
	}
}
